import { EJSON } from 'meteor/ejson';

Meteor.publish('merchant',function(selector,options){
  	return Merchants.find(selector, options);
});
Meteor.publish('wallets',function(selector,options){
  	return Wallets.find(selector, options);
});

Meteor.publish('capitals',function(selector,options){
  	return Capitals.find(selector, options);
});

Meteor.publish('draws',function(selector,options){
	return Draws.find(selector, options);
});

Meteor.publish('accessTokens',function(selector){
  return AccessToken.find(selector);
});

Meteor.publish('loginTokens',function(selector,options){
  return LoginToken.find(selector,options);
});
Meteor.publish('curUser',function(id){
  return Merchants.find({id:parseInt(id)});
});

Meteor.publish('orders',function(selector,options){
  	return Orders.find(selector, options);
});

Meteor.publish('goods',function(selector,options){
	return Goods.find(selector, options);
});

Meteor.publish('refunds',function(selector,options){
	return Refunds.find(selector, options);
});
